package com.hmkj.core.constant;

/**
 * 系统缓存目录配置常量
 *
 * @author liweidong
 * @date 2017年03月10日 13:43
 */
public interface CacheID {

//===============系统=================
    /**
     * 参数配置缓存目录前缀
     */
    String CONFIG_PREFIX = "CONFIG:";
    /**
     * 消息模板缓存目录前缀
     */
    String TEMPLATE_MESSAGE_PREFIX = "TEMPLATE:MESSAGE:";
    /**
     * 系统消息队列缓存目录
     */
    String QUEUE_MESSAGE = "QUEUE:MESSAGE";

    /**
     * Ali短信队列缓存目录
     */
    String QUEUE_MESSAGE_ALI = "QUEUE:MESSAGE:ALI";

//==================行情/交易==================
    /**
     * 行情前缀
     **/
    public static final String QUOTE_PREFIX = "QUOTE:PRICE:";
    /**
     * 日K 前缀
     **/
    public static final String QUOTE_KLINE_PREFIX = "QUOTE:KLINE:";
    /**
     * 分时 前缀
     **/
    public static final String TIME_LINE_PREFIX = "QUOTE:TLINE:PREFIX:";
    /**
     * 上证股票A股信息前缀
     **/
    public static final String UP_STOCK_PREFIX = "QUOTE:UP:STPCK:PREFIX:";
    /**
     * 深证股票A股信息前缀
     **/
    public static final String SHEN_STOCK_PREFIX = "QUOTE:SHEN:STPCK:PREFIX:";
    /**
     * 上证股票信息前缀
     **/
    public static final String UPINDEX_STOCK_PREFIX = "QUOTE:UPINDEX:STPCK:PREFIX:";
    /**
     * 深证股票信息前缀
     **/
    public static final String SHENINDEX_STOCK_PREFIX = "QUOTE:SHENINDEX:STPCK:PREFIX:";
    /**
     * 中小板股票信息前缀
     **/
    public static final String MS_STOCK_PREFIX = "QUOTE:MS:STPCK:PREFIX:";
    /**
     * 创业板股票信息前缀
     **/
    public static final String STARTUPS_STOCK_PREFIX = "QUOTE:STARTUPS:STPCK:PREFIX:";
    /**
     * 股票列表信息前缀
     **/
    public static final String STOCK_LIST_PREFIX = "QUOTE:STOCK:LIST:PREFIX:";
    /**
     * 自选前缀 排序字段
     **/
    public static final String MY_CHOOSE_PREFIX = "MYCHOOSE:SORT:PREFXI:";
    /**
     * 月排名 前缀
     **/
    public static final String SIMULATION_RANK_PREFIX = "BIZ:SIMULATION:RANK:PREFIX:";
    /**
     * 递延费 统计 缓存目录
     */
    public static final String DEFER_FEE_COUNT = "FEE:DEFER:COUNT";
    /**
     * 止损平仓 缓存目录
     */
    public static final String STOP_LOSS = "QUEUE:STOP:LOSS";
    /**
     * 流单队列缓存目录
     */
    public static final String QUEUE_FLOW = "QUEUE:FLOW";
    /**
     * 结算队列缓存目录
     */
    public static final String QUEUE_SETTLE = "QUEUE:SETTLE";
    /**
     * 用户待递延订单列表缓存前缀
     */
    public static final String PREFIX_USER_WAIT_DEFER_ORDERS = "ORDER:WAITDEFER:";

//==================股票緩存===================

    public static final String STOCK_CACHE = "STOCK_CACHE:";

    public static final String STOCK_KEYS = "STOCK_KEYS:";

    public static final String STOCK_SORT_KEYS = "STOCK_SORT_KEYS:";

    public static final String STOCK_SORT_CACHE = "STOCK_SORT_CACHE:";

    /**首页指数缓存**/
    public static final String STOCK_INDEX = "STOCK_INDEX:";


//==================支付===================

    /**
     * 支付结果缓存目录前缀
     */
    String PAY_RESULT = "PAY_RESULT:";

    /**
     * 九派支付充值信息缓存
     */
    String NINE_PAI_RECHARGE = "NINE_PAI_RECHARGE:";

    /**
     * 华融支付充值信息缓存
     */
    String HR_PAY_RECHARGE = "HR_PAY_RECHARGE:";

    /**
     * 聚宝盆支付充值信息缓存
     */
    String JBP_PAY_RECHARGE = "JBP_PAY_RECHARGE:";

    //================枚举=================

    /**
     * 股票状态0，正常 ，1停盘 ，2暂时停盘 ，3，ST股 ，4非交易时段,5, 风险股,6:涨跌幅超过百分之八
     *
     * @author zhang yuan
     */
    public enum STOCK_STATUS {
        ST("3", "ST股"),
        NOT_TRADE_TIME("4", "非交易时段"),
        DANGER_STOCK("5", "风险股"),
        OVER_EIGHT("6", "涨跌幅超过百分之八");

        private String Value;
        private String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getValue() {
            return Value;
        }

        public void setValue(String value) {
            Value = value;
        }

        STOCK_STATUS(String Value, String name) {
            this.Value = Value;
            this.name = name;
        }
    }
}
